package com.sq.springcloud.alibaba.service;

import com.sq.springcloud.entities.CommontResult;
import com.sq.springcloud.entities.Payment;
import org.springframework.stereotype.Component;

/**
 * @Description: TODO
 * @author: ydy
 * @date: 2022-11-20 15:04
 */
@Component
public class PaymentFallbackService implements PaymentService {
    @Override
    public CommontResult<Payment> paymentSQL(Long id) {
        return new CommontResult<>(44444, "服务降级返回,---PaymentFallbackService", new Payment(id, "errorSerial"));
    }
}
